/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mobil.controller;

import com.mobil.dao.PetugasDAO;
import com.mobil.database.DbConnection;
import com.mobil.model.Petugas;
import java.sql.Connection;
import java.sql.PreparedStatement;

/**
 *
 * @author Indrawan
 */
public class PetugasImpl implements PetugasDAO{
    private Connection conn;

    public PetugasImpl() {
        conn = DbConnection.getConn();
    }

    
    @Override
    public void addPetugas(Petugas petugas) {
        String sql ="";
        PreparedStatement preparedstatement = null;
        
        try {
            preparedstatement = conn.prepareStatement(sql);
            preparedstatement.setInt(1, 2);
        } catch (Exception e) {
        }
            
    
    }

    @Override
    public void updatePetugas(Petugas petugas) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void deletePetugas(Petugas petugas) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
